<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>文档自定义属性</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<form name="form1" action="content_att.php" method="post">
			<input type="hidden" name="dopost" value="save">
			<table class="table shadow-sm my-3">
				<tr>
					<td colspan="3">文档自定义属性</td>
				</tr>
				<tr>
					<td colspan="3">
						<div class="alert alert-info mb-0">自定义属性说明：文档发布时选择属性后arclist标签加上flag='自定义属性'，例：{dede:arclist flag='h,c'}h,c表示组合属性头条和推荐</div>
					</td>
				</tr>
				<tr align="center">
					<td width="6%">id</td>
					<td width="16%">排序</td>
					<td align="left">属性</td>
				</tr>
				<?php
				$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
				$dsql->Execute();
				$k=0;
				while($row = $dsql->GetObject())
				{
					$k++;
				?>
				<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
				<tr align="center">
					<td><?php echo $row->att;?></td>
					<td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>"  id="sortid_<?php echo $k?>" class="admin-input-xs"></td>
					<td align="left"><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" class="admin-input-sm"></td>
				</tr>
				<?php }?>
				<input type="hidden" name="idend" value="<?php echo $k?>">
				<tr>
					<td colspan="3" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
				</tr>
			</table>
		</form>
	</body>
</html>